package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //新增
    void save(Department department);
    //删除
    void remove(Long id);
    //修改
    void update(Department department);
    //查询单个
    Department loadById(Long id);
    //查询所有
    List <Department> loadAll();
    //查询总条数
    Long queryCount(DepartmentQuery departmentQuery);
    //查询当前页数
    List<Department> queryData(DepartmentQuery departmentQuery);
}
